package com.duoduo.admin.api.feign.fallback;

import java.util.List;

import org.springframework.cloud.openfeign.FallbackFactory;

import com.duoduo.admin.api.dto.SysOauthClientDetailsDTO;
import com.duoduo.admin.api.feign.RemoteClientDetailsFeginClient;
import com.duoduo.common.core.util.R;

public class RemoteClientDetailsFeginClientFallbackFactory implements FallbackFactory<RemoteClientDetailsFeginClient> {

	@Override
	public RemoteClientDetailsFeginClient create(Throwable cause) {
		
		return new RemoteClientDetailsFeginClient() {

			@Override
			public R<SysOauthClientDetailsDTO> getClientDetailsById(String clientId) {
				return R.failed();
			}

			@Override
			public R<List<SysOauthClientDetailsDTO>> listClientDetails() {
				return R.failed();
			}};
	}

}
